cmake_minimum_required(VERSION 2.6)
project(tester)

set(CMAKE_MODULE_PATH ${tester_SOURCE_DIR})

SET(CMAKE_BUILD_TYPE debug)
SET(CMAKE_CXX_FLAGS_DEBUG "-g -D DEBUG")
SET(CMAKE_C_FLAGS_DISTRIBUTION "-g -D DEBUG")

find_package(Boost 1.36.0 REQUIRED filesystem system thread)
find_package(OpenCV REQUIRED cv cxcore highgui)
find_package(CppUnit REQUIRED cppunit)

include_directories(
    ${OpenCV_INCLUDE_DIRS}
    ${Boost_INCLUDE_DIRS}
    ${CppUnit_INCLUDE_DIRS}
    ${GraphicsMagick_INCLUDE_DIRS}
)

set(source tester.cpp imageloadertest.cpp commandlinetest.cpp featureextractortest.cpp featurematchertest.cpp imagesettest.cpp ../imagefeature.cpp ../inputimage.cpp ../featurematcher.cpp ../imagematch.cpp ../imagematcher.cpp ../featureextractor.cpp ../globalhomographycalculator.cpp ../imageloader.cpp ../commandlineoptions.cpp ../imageset.cpp)

add_executable(tester ${source})
target_link_libraries(tester
    ${OpenCV_LIBRARIES}
    ${Boost_LIBRARIES}
    ${CppUnit_LIBRARIES}
    ${GraphicsMagick_LIBRARIES}
    sift
    dl
)
